<?php
$sysnav = "index";
if(!$system && file_exists("data/system_1.php"))
{
	include_once("data/system_1.php");
}
$rs = $system;
if(!$system["jianti"])
{
	if($system["english"]=="on")
	{
		$rs["sitename"] = $rs["sitename_en"];
		$rs["keywords"] = $rs["keywords_en"];
		$rs["description"] = $rs["description_en"];
	}
	if($system["fanti"]=="on")
	{
		$rs["sitename"] = $rs["sitename_ft"];
		$rs["keywords"] = $rs["keywords_ft"];
		$rs["description"] = $rs["description_ft"];
	}
}

$sqlpass = "SELECT passdate FROM ".$prefix."admin WHERE id='".$_SESSION["admin"]["id"]."' ";
$rspass = $DB->qgGetOne($sqlpass);
if($rspass["passdate"])
{
	if(strtotime("+1 months",$rspass["passdate"]) < strtotime(date("Y-m-d")))
	{
		$oldpassdate =1;
	}
}

if($sysAct == "setok")
{
	$rs_msg = $STR->safe($_POST);
	$FS->qgWrite($rs_msg,"data/system_1.php","system");
	Error("网站常规信息设置成功！",$mainlink."?file=index&act=set");
}
$index_notice = array();
#[检查是否有留言信息]
$bookcount = $DB->qgCount("SELECT id FROM ".$prefix."form WHERE ifcheck=0 AND form_sign='book'");

#[检查是否有新的定单]
$ordercount = $DB->qgCount("SELECT id FROM ".$prefix."form WHERE ifcheck=0 AND form_sign='cart'");

Foot("index.qg");
?>